#include <stdio.h>

main(){

int c, pc, comment, quote, have_pc;

	comment = quote = have_pc = 0;

	while ((c = getchar()) != EOF) {
		have_pc = 0;
		if (c == '"' && !quote) {
			quote = 1;
		} else if (c == '"' && quote) {
			quote = 0;
		}
		if (c == '/' && !quote) {
			pc = c;
			have_pc = 1;
			c = getchar();
			if (c == '*') {
				comment = 1;
			}
		}
		if (c == '*' && !quote) {
			pc = c;
			have_pc = 1;
			c = getchar();
			if (c == '/') {
				comment = 0;
				c = getchar();
				have_pc = 0;
			}	
		}		
		if (!comment) {
			if ( have_pc == 1 ) {
				putchar(pc);
			}
		putchar(c);
		}
	}
}
